package com.cy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cy.entity.Book;
import com.cy.entity.BookDictionary;
import com.cy.entity.Dictionary;

import java.util.List;

/**
 * @author 残影
 * @date 2021/2/23 14:21
 */
public interface BookService extends IService<Book> {
    /**
     * 根据书本id查询章节
     * @param bookId
     * @return
     */
    List<BookDictionary> getchapterByBookId(String bookId);

    /**
     * 根据书本id和章节名称查询词汇
     * @param bookId
     * @param tag
     * @return
     */
    List<Dictionary> getVocabulary(String bookId, String tag);
}
